﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace exerciseFive
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入两个数：");
            double number1 = double.Parse(Console.ReadLine());
            double number2 = double.Parse(Console.ReadLine());
            double max = Math.Max(number1, number2);
            double min = Math.Min(number1, number2);
            Console.WriteLine("最大的数为："+max);
            Console.WriteLine("最小的数为："+min);
            Console.ReadKey();
        }
    }
}
